<?php

final class EngineeringCalc extends BaseCalc {

    protected $dataOperations = array(
        "+" => "sum",
        "-" => "difference",
        "*" => "multiply",
        "/" => "division",
        "%" => "percent",
        "square" => "square",
        "root" => "root",
        "Clear" => "clearInput",
        "sin" => "getSin",
        "cos" => "getCos",
        "tan" => "getTan",
        "^" => "involution",
        "cube" => "cube",
        "=" => "equally",
        "Back" => "clearLastOperand"
    );

    function getOperations() {
        return $this->dataOperations;
    }

    protected function getSin($a) {
        return sin($a);
    }

    protected function getCos($a) {
        return cos($a);
    }

    protected function getTan($a) {
        return tan($a);
    }

    protected function involution($a,$b) {
        return pow($a,$b);
    }

    protected function cube($a) {
        return pow($a,3);
    }

}